/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.persistencesubsystem;

import java.io.Serializable;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Francesco
 */
@Stateless ()
public class DAOProvider implements IDAOProvider
{

    // Instance Fields
    
    /***/
    @EJB ()
    private IUserDAO userDAO ;
    
    /***/
    @EJB ()
    private ICalendarDAO calendarDAO ;
    
    /***/
    @EJB ()
    private IEventDAO eventDAO ;
    
    /***/
    @EJB ()
    private INotificationDAO notificationDAO ;

    // Instance Methods
    
    /***/
    public DAOProvider () {}
    
    /**
     * @return the userDAO
     */
    @Override
    public IUserDAO getUserDAO () 
    {
        return userDAO;
    }

    /**
     * @return the calendarDAO
     */
    @Override
    public ICalendarDAO getCalendarDAO () 
    {
        return calendarDAO;
    }

    /**
     * @return the eventDAO
     */
    @Override
    public IEventDAO getEventDAO () 
    {
        return eventDAO;
    }

    /**
     * @return the notificationDAO
     */
    @Override
    public INotificationDAO getNotificationDAO () 
    {
        return notificationDAO;
    }
    
}
